<?php

class ProviderOrderItems extends MenuItemProvider {
	
	public function getItems() {
		$_items = array(
			Goods::TYPE_TRAVEL => array('label'=>'旅游路线订单管理', 'url'=>array(AdminModule::OPERATOR_ADMIN.'order/orderTravel')),
			Goods::TYPE_HOTEL => array('label'=>'酒店订单管理', 'url'=>array(AdminModule::OPERATOR_ADMIN.'order/orderHotel')),
			Goods::TYPE_SCENIC => array('label'=>'景区门票订单管理', 'url'=>array(AdminModule::OPERATOR_ADMIN.'order/orderScenic')),
			Goods::TYPE_TICKET => array('label'=>'机票订单管理', 'url'=>array(AdminModule::OPERATOR_ADMIN.'order/orderTicket')),
			Goods::TYPE_NATIVE => array('label'=>'土特产订单管理', 'url'=>array(AdminModule::OPERATOR_ADMIN.'order/orderNative')),
			Goods::TYPE_TICKET_TRAIN => array('label'=>'火车票管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/trainTicket')),
		);
		$itemId = Yii::app()->adminUser->worker->info->category_id;
		$item = $_items[$itemId];
		return $item;
	}
}

?>